package cn.edu.gduf.luowowo.scenic.service.impl;

import cn.edu.gduf.luowowo.scenic.domain.Scenic;
import cn.edu.gduf.luowowo.scenic.mapper.ScenicMapper;
import cn.edu.gduf.luowowo.scenic.service.IScenicService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class ScenicServiceImpl implements IScenicService{
    @Autowired
    private ScenicMapper scenicMapper;
    @Override
    public List<Scenic> list() {
        return scenicMapper.selectAll();
    }

    @Override
    public Scenic get(Long id) {
        return scenicMapper.selectByPrimaryKey(id);
    }

    @Override
    public Scenic queryScenicIntroByDestId(Long destId) {
        return scenicMapper.selectScenicIntroByDestId(destId);
    }


}
